package service;


import bean.pojo.GdDoctor;
import bean.pojo.GdUserDoctorlist;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GdUserDoctorlistService {
    /**
     * 查询医生列表
     * @param userId
     * @return
     */
    List<GdDoctor> selectDocList(Long userId) throws Exception;

    boolean isFollow(Long doctorId, Long userId) throws Exception;

    /**
     * 添加关注
     * @param userId
     * @param doctorId
     * @return
     */
    boolean follow(Long userId, Long doctorId) throws Exception;

    /**
     * 取消 关注
     * @param userId
     * @param doctorId
     * @return
     */
    boolean unFollow(Long userId, Long doctorId) throws Exception;
}